package com.inspur.service;

import com.inspur.common.ServerResponse;
import com.inspur.pojo.UserAccount;
import com.inspur.pojo.UserInfo;
import org.springframework.transaction.annotation.Transactional;

public interface IUserService {

    ServerResponse login(String userName,String password);
    @Transactional
    ServerResponse register(UserAccount userAccount, UserInfo userInfo);

    ServerResponse getUserInfoByUserName(String userName);
}
